//
//  GOPongTableTest.m
//  Pong
//
//  Created by Samuel Goodwin on 2/19/07.
//

#import "GOPongTableTest.h"


@implementation GOPongTableTest
- (void)setup
{

}

- (void)testCollision
{
	ball = [[GOBall alloc] initWithPosition:NSMakePoint(50.0,50.0)];
	sprite = [[GOSprite alloc] initWithPosition:NSMakePoint(50.0,50.0)];
	STAssertTrue([ball collides_with:sprite], @"They're not collidiing like they should.", nil);
	[ball release];
	[sprite release];
	
	ball = [[GOBall alloc] initWithPosition:NSMakePoint(100.0,100.0)];
	sprite = [[GOSprite alloc] initWithPosition:NSMakePoint(100.0,106.0)];
	STAssertFalse([ball collides_with:sprite], @"They shouldn't be colliding.", nil);
}

@end
